package com;

import java.time.LocalDateTime;

public class Log {
    private String logId;
    private LocalDateTime operateTime;
    private String operateType;
    private User operator;
    private String details;

    public Log(String logId, User operator, String operateType, String details) {
        this.logId = logId;
        this.operateTime = LocalDateTime.now();
        this.operator = operator;
        this.operateType = operateType;
        this.details = details;                                                 }
    public String getLogId() { return logId; }
    public LocalDateTime getOperateTime() { return operateTime; }
    public String getOperateType() { return operateType; }
    public User getOperator() { return operator; }
    public String getDetails() { return details; }
}
